package org.example.dao;

import org.apache.ibatis.annotations.Select;
import org.example.model.User;
import org.springframework.data.repository.query.Param;

public interface UserLoginDao {
    User login(String account, String password);

    void register(User user);

    @Select("SELECT * FROM users WHERE account = #{account}")
    User checkAccount(@Param("account") String account);
}
